<%@ include file="/common/taglibs.jsp" %>
<%@ page pageEncoding="UTF-8" %>

<head>
    <title>登录界面</title>
</head>
<body id="login">

<form method="post" id="loginForm" action="<c:url value='/j_security_check'/>"
    onsubmit="saveUsername(this);return validateForm(this)" class="form-signin" autocomplete="off">
    <h2 class="form-signin-heading">
        登录信息
    </h2>
<c:if test="${param.error != null}">
    <div class="alert alert-error fade in">
        无效用户名或密码，请重试。
    </div>
</c:if>

    <input type="text" name="j_username" id="j_username" class="input-block-level"
           placeholder="用户名" required tabindex="1">
    <input type="password" class="input-block-level" name="j_password" id="j_password" tabindex="2"
           placeholder="密码" required>

<c:if test="${appConfig['rememberMeEnabled']}">
    <label class="checkbox" for="rememberMe">
        <input type="checkbox" class="checkbox" name="_spring_security_remember_me" id="rememberMe" tabindex="3"/>
        记住我</label>
</c:if>

    <button type="submit" class="btn btn-large btn-primary" name="login" tabindex="4">
        登录
    </button>
</form>

<%--
<p>
    <fmt:message key="login.signup">
        <fmt:param><c:url value="/signup"/></fmt:param>
    </fmt:message>
</p>
--%>

<c:set var="scripts" scope="request">
    <%@ include file="/scripts/login.js"%>
</c:set>

<%--<p><fmt:message key="login.passwordHint"/></p>--%>
</body>